{% extends "WebMainSiteBundle:User:layout.html.twig" %}
{% set title = "我的收藏" %}
{% block title %}
    {{ title }}
{% endblock %}

{% block user_main %}
    {#<h2 class="yahei">我的收藏</h2>#}
    <div class="row">
        {% for collect in collects %}
            <article class="col-md-4 video-item">
                <a href="{{ path("WebCourseIndex" , { uniqueId : collect.Course_uniqueId }) }}" class="video-prev video-prev-small"
                   style="background-image: url({{ asset(collect.Course_picCover) }});background-size: cover;background-position: center"></a>
                {#>#}
                    {#<img src="{{ asset(collect.Course_picCover) }}">#}
                {#</a>#}
                <h3 class="video-title"><a href="{{ path("WebCourseIndex" , { uniqueId : collect.Course_uniqueId }) }}">{{ collect.Course_title }}</a></h3>
                {#<div class="row video-params">#}
                    {#<div class="col-md-12">#}
                        {#讲师: <b>{{ collect.User_nickName ? collect.User_nickName : collect.User_account }}</b>#}
                    {#</div>#}
                {#</div>#}
                {#<div class="row video-params">#}
                    {#<div class="col-md-12">#}
                        {#更新: <b>{{ collect.Course_updateTime | date("Y/m/d") }}</b>#}
                    {#</div>#}
                {#</div>#}
                <div class="row video-params">
                    <div class="col-md-12" style="overflow: hidden;white-space: nowrap;word-break: keep-all">
                        <i class="fa fa-user"></i> 讲师：<b>{{ collect.User_nickName ? collect.User_nickName : collect.User_account }}</b>
                    </div>
                </div>
                <div class="row video-params">
                    <div class="col-md-6">
                        <i class="fa fa-book"></i> 课时：<b>{{ collect.statistic.lesson }}</b>
                    </div>
                    <div class="col-md-6 text-right">
                        <i class="fa fa-group"></i> 学员：<b>{{ collect.statistic.collect }}</b>
                    </div>
                </div>
                <div class="row video-params">
                    <div class="col-md-6">
                        <i class="fa fa-upload"></i> 更新: <b>{{ collect.Course_updateTime | date("m.d") }}</b>
                    </div>
                    <div class="col-md-6 text-right">
                        <i class="fa fa-heart"></i> 喜欢：<b>{{ collect.statistic.likes }}</b>
                    </div>
                </div>
            </article>
        {% endfor %}
    </div>
{% endblock %}

